package com.norteksoft.projectname.module1.model;

import java.util.Date;
/**
 * @hibernate.class 
 * @author huhc
 *
 */
public class Person {
	private Long id;
	private String name;
	private String sex;
	private Date birthday;
	private String nativePlace;
	private Integer height; //厘米为单位
	private Double weight;	//公斤为单位
	private String[] hobby;
	private String[] technology;
	private String photoName;
	private String email;
	
	private Attachment attachment; 
	private Department belongDep;
	
	/**
	 * @hibernate.many-to-one column="FK_Department_Id"
	 * @return
	 */
	public Department getBelongDep() {
		return belongDep;
	}
	public void setBelongDep(Department belongDep) {
		this.belongDep = belongDep;
	}

	
	/**
	 * @hibernate.id generator-class="native"
	 * @return
	 */
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * @hibernate.many-to-one cascade="all"
	 * 	 	column="FK_Attachment_Id" 
	 * 		unique="true" 
	 * @return
	 */
	public Attachment getAttachment() {
		return attachment;
	}

	public void setAttachment(Attachment attachment) {
		this.attachment = attachment;
	}

	/**
	 * @hibernate.property 
	 * @return
	 */
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	/**
	 * @hibernate.property 
	 * @return
	 */
	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	/**
	 * @hibernate.property type="serializable"
	 * @return
	 */
	public String[] getHobby() {
		return hobby;
	}

	public void setHobby(String[] hobby) {
		this.hobby = hobby;
	}

	/**
	 * @hibernate.property 
	 * @return
	 */
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @hibernate.property 
	 * @return
	 */
	public String getNativePlace() {
		return nativePlace;
	}

	public void setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
	}

	/**
	 * @hibernate.property 
	 * @return
	 */
	public String getPhotoName() {
		return photoName;
	}

	public void setPhotoName(String photoName) {
		this.photoName = photoName;
	}

	/**
	 * @hibernate.property 
	 * @return
	 */
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @hibernate.property type="serializable"
	 * @return
	 */
	public String[] getTechnology() {
		return technology;
	}

	public void setTechnology(String[] technology) {
		this.technology = technology;
	}

	/**
	 * @hibernate.property 
	 * @return
	 */
	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}
	
	/**
	 * @hibernate.property 
	 * @return
	 */
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	
}
